﻿namespace Sidvall.AuthorizationManager.Data.Entity.Entities
{
    public partial class AuthorizationScopeExport : global::Sidvall.Data.DataRowBase, global::Sidvall.AuthorizationManager.Data.IAuthorizationScopeExport
    {
        #region Public Members

        #region AuthorizationScopeExportId

        private long _AuthorizationScopeExportId;
        public long AuthorizationScopeExportId
        { 
            get
            {
                return _AuthorizationScopeExportId;
            }
            set
            {
                _AuthorizationScopeExportId = value;
            }
        }

        #endregion
        #region AuthorizationScopeId

        private long _AuthorizationScopeId;
        public long AuthorizationScopeId
        { 
            get
            {
                return _AuthorizationScopeId;
            }
            set
            {
                _AuthorizationScopeId = value;
            }
        }

        #endregion
        #region CreateMissingFile

        private bool _CreateMissingFile;
        public bool CreateMissingFile
        { 
            get
            {
                return _CreateMissingFile;
            }
            set
            {
                _CreateMissingFile = value;
            }
        }

        #endregion
        #region FilePath

        private string _FilePath;
        public string FilePath
        { 
            get
            {
                return _FilePath;
            }
            set
            {
                _FilePath = value;
            }
        }

        #endregion
        #region IncludeResourceItems

        private bool _IncludeResourceItems;
        public bool IncludeResourceItems
        { 
            get
            {
                return _IncludeResourceItems;
            }
            set
            {
                _IncludeResourceItems = value;
            }
        }

        #endregion
        #region IncludeUserItems

        private bool _IncludeUserItems;
        public bool IncludeUserItems
        { 
            get
            {
                return _IncludeUserItems;
            }
            set
            {
                _IncludeUserItems = value;
            }
        }

        #endregion
        #region IsEnabled

        private bool _IsEnabled;
        public bool IsEnabled
        { 
            get
            {
                return _IsEnabled;
            }
            set
            {
                _IsEnabled = value;
            }
        }

        #endregion
        #region XmlNode

        private string _XmlNode;
        public string XmlNode
        { 
            get
            {
                return _XmlNode;
            }
            set
            {
                _XmlNode = value;
            }
        }

        #endregion
        
        public virtual Sidvall.AuthorizationManager.Data.Entity.Entities.AuthorizationScope AuthorizationScope { get; set; }
        
        #region DataRowContextStorageKey

        protected override string DataRowContextStorageKey
        {
            get
            {
                return global::Sidvall.AuthorizationManager.Data.Entity.SystemContext.Current.EntityFacade.AuthorizationScopeExportManager.GetKey(this);
            }
        }

        #endregion
        #region DataRowStateIsDirty

        protected override bool DataRowStateIsDirty
        {
            get
            {
                return global::Sidvall.AuthorizationManager.Data.Entity.SystemContext.Current.EntityFacade.AuthorizationScopeExportManager.DataRowStateIsDirty(this);
            }
        }

        #endregion

        #region IAuthorizationScopeExport Members

        System.Nullable<long> global::Sidvall.AuthorizationManager.Data.IAuthorizationScopeExport.AuthorizationScopeExportId
        {
            get
            {
                return this._AuthorizationScopeExportId;
            }
            set
            {
                if (value != null)
                    this.AuthorizationScopeExportId = value.Value;
            }
        }
        long global::Sidvall.AuthorizationManager.Data.IAuthorizationScopeExport.AuthorizationScopeId
        {
            get
            {
                return this._AuthorizationScopeId;
            }
            set
            {
                this.AuthorizationScopeId = value;
            }
        }
        bool global::Sidvall.AuthorizationManager.Data.IAuthorizationScopeExport.CreateMissingFile
        {
            get
            {
                return this._CreateMissingFile;
            }
            set
            {
                this.CreateMissingFile = value;
            }
        }
        string global::Sidvall.AuthorizationManager.Data.IAuthorizationScopeExport.FilePath
        {
            get
            {
                return this._FilePath;
            }
            set
            {
                this.FilePath = value;
            }
        }
        bool global::Sidvall.AuthorizationManager.Data.IAuthorizationScopeExport.IncludeResourceItems
        {
            get
            {
                return this._IncludeResourceItems;
            }
            set
            {
                this.IncludeResourceItems = value;
            }
        }
        bool global::Sidvall.AuthorizationManager.Data.IAuthorizationScopeExport.IncludeUserItems
        {
            get
            {
                return this._IncludeUserItems;
            }
            set
            {
                this.IncludeUserItems = value;
            }
        }
        bool global::Sidvall.AuthorizationManager.Data.IAuthorizationScopeExport.IsEnabled
        {
            get
            {
                return this._IsEnabled;
            }
            set
            {
                this.IsEnabled = value;
            }
        }
        string global::Sidvall.AuthorizationManager.Data.IAuthorizationScopeExport.XmlNode
        {
            get
            {
                return this._XmlNode;
            }
            set
            {
                this.XmlNode = value;
            }
        }
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
        IAuthorizationScope global::Sidvall.AuthorizationManager.Data.IAuthorizationScopeExport.AuthorizationScope
        {
            get
            {
                return this.AuthorizationScope;
            }
            set
            {
                this.AuthorizationScope = value as AuthorizationScope;
            }
        }

        #endregion

        #endregion
        #region Constructors

        public AuthorizationScopeExport() : this(false, null, null)
        {
        }
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public AuthorizationScopeExport(bool initializeChildren, Sidvall.Data.IDataRowContextProvider context, Sidvall.Data.DataRowState? dataRowState)
        {
            if ((context != null) || (dataRowState != null))
                SetDataRowContext(context, dataRowState);
            if (initializeChildren)
            {
            }
        }

        #endregion
    }
}